package strategy;

public class Main {

    public static void main(String args[]) {
//        CashSuper cashSuper = CashFactory.createCashAccept("打8折");
        CashContext context = new CashContext("打8折");
        double totalPrices = 0d;
//        totalPrices = cashSuper.acceptCash(200);
        totalPrices = context.getResult(500);
        System.out.println("合计：" + totalPrices);

    }

}
